home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / System / SYMBOL / Conversions / Lengths / length-to-string
Text File  |  1998-10-23  |  423b  |  15 lines

  1. length-to-string length-pattern
  2.  
  3. Converts a length-pattern to a rhythm-string representation used in timesheets and def-rhythm definitions. All length symbols in the length-pattern are assumed to be of equal size.
  4.  
  5. (length-to-string '(1/16 -1/16 1/16))
  6. --> "- -"
  7.  
  8. (length-to-string '(1/4 -1/4 1/4))
  9. --> "- -"
  10.  
  11. There's no checking if the lengths are of different sizes, and so:
  12.  
  13. (length-to-string '(1/4 -1/8 1/4))
  14. --> "- -"
  15.